<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    {block name="title"}标题{/block}
    <!--<meta name="viewport" content="width=device-width">-->
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <!-- Bootstrap styles -->
    <link rel="stylesheet" href="__index_css__bootstrap.min.css">
    <!-- Font-Awesome -->
    <link rel="stylesheet" href="__index_css__font-awesome/css/font-awesome.min.css">
    <!-- Google Webfonts -->
    <link rel="stylesheet" href="__index_css__css.css?family=Open+Sans:400,600|PT+Serif:400,400italic" type="text/css">
    <!-- Styles -->
    <link rel="stylesheet" href="__index_css__style.css" id="theme-styles">

</head>
<body>
<header>
    <div class="widewrapper masthead">
        <div class="container">
            <a href="{:url('/')}" id="logo">
                <img src="__index_img__logo.png" alt="clean Blog">
            </a>

            <div id="mobile-nav-toggle" class="pull-right">
                <a href="#" data-toggle="collapse" data-target=".clean-nav .navbar-collapse">
                    <i class="fa fa-bars"></i>
                </a>
            </div>

            <nav class="pull-right clean-nav">
                <div class="collapse navbar-collapse">
                    <ul class="nav nav-pills navbar-nav" style="">

                        {foreach name="category_list" item="v"}
                        <li class="nav{if count($v.child)} dropdown{/if}">
                            <a href="{:url('/list/'.$v.id)}">{$v.name}</a>

                            {if count($v.child)}
                            <ul class="dropdown-menu">
                            {foreach name="$v.child" item="vv"}
                                <li><a href="{:url('/list/'.$vv.id)}">{$vv.name}</a></li>
                            {/foreach}
                            </ul>
                            {/if}

                        </li>
                        {/foreach}
                    </ul>
                </div>
            </nav>

        </div>
    </div>

    <div class="widewrapper subheader">
        <div class="container">
            <div class="clean-breadcrumb">
                {block name="maps"}
                <a href="{:url('/')}">首页</a>
                {/block}

            </div>

            <div class="clean-searchbox">
                <form action="{:url('/')}" method="get" accept-charset="utf-8">
                    <input class="searchfield" id="searchbox" name="keywords" type="text" value="{$keywords??''}" placeholder="Search">
                    <button class="searchbutton" type="submit">
                        <i class="fa fa-search"></i>
                    </button>
                </form>
            </div>
        </div>
    </div>
</header>

{block name="content"}
<aside class="col-md-4 blog-aside">

    <div class="aside-widget">
        <header>
            <h3>热门博文</h3>
        </header>
        <div class="body">
            <ul class="clean-list">
                {foreach name="hots" item="hot"}
                    <li><a href="{:url('/article/'.$hot.id)}" title="{$hot.title}">{:mb_substr($hot.title,0,18)}</a></li>
                {/foreach}
            </ul>
        </div>
    </div>

    <div class="aside-widget">
        <header>
            <h3>推荐文章</h3>
        </header>
        <div class="body">
            <ul class="clean-list">
                {foreach name="remmends" item="remmend"}
                    <li><a href="{:url('/article/'.$remmend.id)}" title="{$remmend.title}">
                        {:mb_substr($remmend.title,0,17)}{if (mb_strlen($remmend.title)) > 17 }...{/if}
                    </a></li>
                {/foreach}
            </ul>
        </div>
    </div>

    <div class="aside-widget">
        <header>
            <h3>Tags</h3>
        </header>
        <div class="body clearfix">
            <ul class="tags">
                <li><a href="#">HTML5</a></li>
                <li><a href="#">CSS3</a></li>
                <li><a href="#">COMPONENTS</a></li>
                <li><a href="#">TEMPLATE</a></li>
                <li><a href="#">PLUGIN</a></li>
                <li><a href="#">BOOTSTRAP</a></li>
                <li><a href="#">TUTORIAL</a></li>
                <li><a href="#">UI/UX</a></li>
            </ul>
        </div>
    </div>

    <div class="aside-widget">
        <header>
            <h3>友情链接</h3>
        </header>
        <div class="body">
            <ul class="clean-list">
                {foreach name="links" item="link"}
                    <li><a href="{$link.link}">{$link.name}</a></li>
                {/foreach}
            </ul>
        </div>
    </div>

</aside>

{/block}

<footer>
    <div class="widewrapper copyright">
        {$config.copyright} &nbsp;&nbsp;
        {$config.web_count}
    </div>
</footer>

<script src="__index_js__jquery.min.js"></script>
<script src="__index_js__bootstrap.min.js"></script>
<script src="__index_js__modernizr.js"></script>
<script>
    $(function () {

        $('.nav').hover(function(){
            $(this).addClass('open');
        },function(){
            $(this).removeClass('open');
        });
    });
</script>
</body>
</html>